//统一管理项目的接口
//引入二次封装的axios（有请求，响应的拦截器）
import mockRequest from "@/api/mockRequest"
//import request from "./request"
//获取banner(Home 首页轮播图接口)
export const reqGetBannerList = () => mockRequest.get('/banner')
export const reqGetCategoryList = () => mockRequest.get('/product/getBaseCategoryList')
//获取floor组件的数据
export const reqGetFloorList = () => mockRequest.get('/floor')
//获取search组件的数据
export const reqGetSearchList = (params = {}) => mockRequest({ url: '/getSearchList', method: 'POST', data: params })
//获取detail组件渲染商品详情的数据
export const reqGetDetail = (queryParams = {}) => mockRequest({ url: '/getGoodInfo', method: 'GET', params: queryParams })
//获取购物车的数据
export const reqGetShopcart = (queryParams = {}) => mockRequest({ url: '/shopCartInfo', method: 'GET', params: queryParams })
// 注册接口：发送 phone、password、code
export const reqRegisterUser = (params = {}) =>
    mockRequest({
        url: '/register',
        method: 'POST',
        data: params
    });
    //获取收货地址信息
    export const reqGetAddresslist=()=>mockRequest.get('/addressInfo')
    //支付是否成功的状态请求发送
    export const reqPayStatus=()=>mockRequest.get('/payStatus')
